package com.example.easybuy.mapper;

import com.example.easybuy.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    List<Product> findAll();
    
    Product findById(@Param("id") Long id);
    
    int insert(Product product);
    
    int update(Product product);
    
    int deleteById(@Param("id") Long id);
}